﻿using CMS.Utils;
using Microsoft.AspNetCore.Authorization;

namespace CMS.Auth
{
    public class MyAuthorizeAttribute : AuthorizeAttribute
    {
        public MyAuthorizeAttribute() : base(Const.BASE_RULE)
        {
            this.AdmRequire = false;
        }
        public bool AdmRequire { get; set; }
        public MyAuthorizeAttribute(bool AdmRequire) : base(Const.BASE_RULE)
        {
            this.AdmRequire = AdmRequire;
        }
    }
}
